$(function () {
    var fn = ABUS.Fn;
    var listData = [];
    var param = window.__param__;

    $("#wrap").renderTemp({
        data:param
    });

    fn.countDown(param.remainTime, function (time, min) {
        $("[data-time]").text(min+"分钟")
    });
    fn.get({
        url: "/user/order/unStartChildOrder",
        data: {
            "orderId": param.orderId,
            "childOrderId": param.touchCurrentChildOrderId
        },
        success: function (data) {
            if(data.result === 1){
                $("#wrap1").renderTemp(data);
                fn.countDown($("[data-time1]").data('time1'), function (time, min) {
                    $("[data-time1]").text(time)
                });
            }else{
                fn.alert({
                    type:"error",
                    title:data.message
                })
            }
        }
    });

});